package com.erp.erp_mask.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.erp.erp_mask.pojo.TPurchase;
import com.erp.erp_mask.pojo.TSalesorders;
import com.erp.erp_mask.service.TPurchaseService;
import com.erp.erp_mask.mapper.TPurchaseMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author yang
* @description 针对表【t_purchase】的数据库操作Service实现
* @createDate 2024-05-16 16:36:33
*/
@Service
public class TPurchaseServiceImpl extends ServiceImpl<TPurchaseMapper, TPurchase>
    implements TPurchaseService{

    @Resource
private TPurchaseMapper tPurchaseMapper;


    @Override
    public Page<TPurchase> searchlist(String startdate, String overdate, String chasename,Long pageNo, Long pageSize) {
        return tPurchaseMapper.searchchase(startdate,overdate,chasename,new Page<>(pageNo,pageSize));
    }

    @Override
    public List<TPurchase> tongjiChase() {
        List<TPurchase> list=tPurchaseMapper.tongjiChase();
        return list;
    }


}




